package cn.gzjp.modules.logis.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.logis.entity.LogisGoodsPic;
import cn.gzjp.modules.logis.dao.LogisGoodsPicDao;

/**
 * 货物图片Service
 * @author zengcp
 * @version 2018-03-21
 */
@Service
@Transactional(readOnly = true)
public class LogisGoodsPicService extends CrudService<LogisGoodsPicDao, LogisGoodsPic> {

	public LogisGoodsPic get(String id) {
		return super.get(id);
	}
	
	public List<LogisGoodsPic> findList(LogisGoodsPic logisGoodsPic) {
		return super.findList(logisGoodsPic);
	}
	
	public Page<LogisGoodsPic> findPage(Page<LogisGoodsPic> page, LogisGoodsPic logisGoodsPic) {
		return super.findPage(page, logisGoodsPic);
	}
	
	@Transactional(readOnly = false)
	public void save(LogisGoodsPic logisGoodsPic) {
		super.save(logisGoodsPic);
	}
	
	@Transactional(readOnly = false)
	public void delete(LogisGoodsPic logisGoodsPic) {
		super.deleteByLogic(logisGoodsPic);
	}
	
}